from apps.system.views import RegionsViewSet, OperationRecordsViewSet, LoginLogsViewSet, OrganizationViewSet
from extensions.routers import *
from apps.system.views import *


router = BaseRouter()
router.register('permission_groups', PermissionGroupViewSet, 'permission_group')
router.register('roles', RoleViewSet, 'role')
router.register('users', UserViewSet, 'user')
router.register('organizations', OrganizationViewSet, 'organizations')
router.register('user', UserActionViewSet, 'user_action')
router.register('jobs', JobsViewSet, 'jobs')
router.register('dicts', DictsViewSet, 'dicts')
router.register('regions', RegionsViewSet, 'regions')#获取区县
router.register('operationRecords', OperationRecordsViewSet, 'operationRecords')
router.register('loginLogs', LoginLogsViewSet, 'loginLogs')

urlpatterns = router.urls
